<template>
  <div class="divBox relative">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <div class="container mt-1">
          <el-form inline size="small">
            <el-button type="primary" size="mini" @click="addBtn">新增部门</el-button>
          </el-form>
        </div>
      </div>
      <el-table
        v-loading="listLoading"
        :data="tableData"
        style="width: 100%"
        size="mini"
        height="500px"
        :highlight-current-row="true"
        :header-cell-style=" {fontWeight:'bold'}"
      >
        <el-table-column
          prop="id"
          label="ID"
          min-width="50"
        />
        <el-table-column label="分类名称"
                         prop="name"
                         min-width="100"
                         :show-overflow-tooltip="true">
        </el-table-column>
        <el-table-column
          prop="handlingFee"
          label="手续费"
          min-width="100"
          align="center"
        />
        <el-table-column
          label="添加时间"
          min-width="120"
          align="center"
        >
          <template slot-scope="scope">
            <span>{{ scope.row.createTime }}</span>
          </template>
        </el-table-column>
        <el-table-column label="操作" min-width="130" fixed="right">
          <template slot-scope="scope">
            <el-button size="small" type="text">编辑</el-button>
            <el-button size="small" type="text">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
	<!-- 新增角色 -->
	<el-dialog
	  title="新增角色"
	  :visible.sync="dialogVisible"
	  :close-on-click-modal="false"
	  width="500px">
	  <span>这是一段信息</span>
	  <span slot="footer" class="dialog-footer">
	    <el-button @click="dialogVisible = false">取 消</el-button>
	    <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
	  </span>
	</el-dialog>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        tableData:[],
		listLoading:false,
		dialogVisible:false,
		form:{
			roleTitle:'',
			roleName:'',
			
		}
      }
    },
    mounted() {
      // this.lodeData()
    },
    methods: {
		addBtn(){
			this.dialogVisible = true
			this.form = {
				
			}
		},
      lodeData(){
		  this.$api.getRoleList().then(res=>{
			  
		  })
	  }
      
    }
  }
</script>
